-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(metric): Add VFP counter metric for uninitialized object #958
base: main
Are you sure you want to change the base?
Conversation
171324f
to
e0bb58a
Compare
This PR will be closed in 7 days due to inactivity. |
|
||
metrics.DropPacketsGauge.WithLabelValues(utils.Endpoint, egressLabel).Set(float64(stats.hnscounters.DroppedPacketsOutgoing)) | ||
metrics.DropPacketsGauge.WithLabelValues(utils.Endpoint, ingressLabel).Set(float64(stats.hnscounters.DroppedPacketsIncoming)) | ||
|
||
if stats.vfpCounters == nil { | ||
h.l.Warn("will not record some metrics since VFP port counters failed to be set") | ||
metrics.VfpStatsGauge.WithLabelValues(utils.Uninitialized).Inc() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem correct; what are you measuring here? Number of times we see no vfpcounters
? Doesn't seem useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's park this for a moment, we need to quantify the value of new metrics that we're adding so they don't impact costs
Description
Add node level metric for no VFPCounters. Tested the new metric works by calling the metrics endpoint inside the node of the windows retina pod:
Related Issue
#933
Checklist
git commit -S -s ...
). See this documentation on signing commits.Screenshots (if applicable) or Testing Completed
Please add any relevant screenshots or GIFs to showcase the changes made.
Additional Notes
The metric was generated as it brought outside the conditional statement for testing purposes only, i.e. metric can be compiled and incremented.
Please refer to the CONTRIBUTING.md file for more information on how to contribute to this project.